package rd.hardcore.ui.tools 
{
	import flash.display.MovieClip;
	import flash.events.MouseEvent;
	import flash.ui.Mouse;
	import flash.ui.MouseCursor;
	
	/**
	 * ...
	 * @author Romain Prache
	 */
	public class Cursor extends MovieClip
	{
		
		public function Cursor() 
		{
			addEventListener(MouseEvent.MOUSE_OVER, handleOver);
			addEventListener(MouseEvent.MOUSE_OUT, 	handleOut);
			
			mouseChildren = false;
		}
		
		private function handleOver(e:MouseEvent):void 
		{
			Mouse.cursor = MouseCursor.HAND;
		}
		
		private function handleOut(e:MouseEvent):void 
		{
			Mouse.cursor = MouseCursor.ARROW;
			Mouse.cursor = MouseCursor.AUTO;
		}
		
	}

}